package BDLayer;

import java.util.List;

import modelLayer.Person;


public interface IFDBProEmployee {

	//return list of type ProductEmployee "all"
	public List<Person> getAllProEmp(boolean retriveAssociation);
	
	
	//return an object of type ProductionEmployee by person id
	public Person getProEmpPersonID(int personID, boolean retriveAssociation);
	
	
	//return an object of type ProductionEmployee by initial
	public Person getProEmpByInitital(String initial, boolean retriveAssociation);
	
	
	//insert ProductionEmployee object in DB
	//return 1 if ok, -1 if failed
	public int insertProductionEmployee(Person proEmpObj, boolean retriveAssociation) throws Exception;
	
	//update ProductionEmployee object in DB
		//return 1 if ok, -1 if failed
	public int updateProductionEmployee(Person proEmpObj, boolean retriveAssociation) throws Exception;


	//delete ProductionEmployee object in DB
		//return 1 if ok, -1 if failed
	public int deleteProductionEmployee(Person proEmpObj, boolean retriveAssociation) throws Exception;

}
